package com.md.model.request.authentication.users;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.md.util.StringUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author 刘骄阳
 * 2022-04-01 18:33
 */
@Data
@ApiModel("用户请求实体")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class UpdateUsersRequest {
  /**
   * 用户主键id
   */
  @ApiModelProperty("用户主键id")
  @JsonFormat(shape = JsonFormat.Shape.STRING)
  private Long id;

  /**
   * 用户名
   */
  @ApiModelProperty("用户名")
  private String name;

  /**
   * 密码
   */
  @ApiModelProperty("密码")
  private String password;

  /**
   * 头像
   */
  @ApiModelProperty("头像")
  private String headIcon;

  /**
   * 性别(0: 未知;1:男;2:女)
   */
  @ApiModelProperty("性别(0: 未知;1:男;2:女)")
  private Boolean sex;

  @Override
  public String toString() {
    return StringUtil.objectToJson(this);
  }

}
